home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 2b | 2b 0a 50 61 74 68 3a 20 |.lang.c+|+.Path: |
|00000020| 68 6f 77 6c 61 6e 64 2e | 72 65 73 74 6f 6e 2e 61 |howland.|reston.a|
|00000030| 6e 73 2e 6e 65 74 21 70 | 73 69 6e 6e 74 70 21 70 |ns.net!p|sinntp!p|
|00000040| 73 69 6e 6e 74 70 21 70 | 73 69 6e 6e 74 70 21 70 |sinntp!p|sinntp!p|
|00000050| 73 69 6e 6e 74 70 21 62 | 62 6e 65 77 73 31 21 74 |sinntp!b|bnews1!t|
|00000060| 72 73 76 72 21 6e 65 77 | 73 0a 46 72 6f 6d 3a 20 |rsvr!new|s.From: |
|00000070| 22 42 65 6e 6a 61 6d 69 | 6e 20 4d 2e 20 52 6f 6d |"Benjami|n M. Rom|
|00000080| 65 72 22 20 3c 62 6d 72 | 31 40 74 72 70 6f 34 2e |er" <bmr|1@trpo4.|
|00000090| 74 72 2e 75 6e 69 73 79 | 73 2e 63 6f 6d 3e 0a 53 |tr.unisy|s.com>.S|
|000000a0| 75 62 6a 65 63 74 3a 20 | 52 65 3a 20 42 6f 72 6c |ubject: |Re: Borl|
|000000b0| 61 6e 64 20 63 2b 2b 20 | 77 69 6e 64 6f 77 73 20 |and c++ |windows |
|000000c0| 68 65 6c 70 20 77 61 6e | 74 65 64 2e 0a 53 65 6e |help wan|ted..Sen|
|000000d0| 64 65 72 3a 20 6e 65 77 | 73 40 74 72 2e 75 6e 69 |der: new|s@tr.uni|
|000000e0| 73 79 73 2e 63 6f 6d 20 | 28 63 6e 65 77 73 20 6e |sys.com |(cnews n|
|000000f0| 65 77 73 20 69 64 2e 29 | 0a 4d 65 73 73 61 67 65 |ews id.)|.Message|
|00000100| 2d 49 44 3a 20 3c 44 4d | 73 32 39 6e 2e 49 44 35 |-ID: <DM|s29n.ID5|
|00000110| 40 74 72 2e 75 6e 69 73 | 79 73 2e 63 6f 6d 3e 0a |@tr.unis|ys.com>.|
|00000120| 44 61 74 65 3a 20 57 65 | 64 2c 20 31 34 20 46 65 |Date: We|d, 14 Fe|
|00000130| 62 20 31 39 39 36 20 31 | 38 3a 30 35 3a 34 37 20 |b 1996 1|8:05:47 |
|00000140| 47 4d 54 0a 54 6f 3a 20 | 73 74 61 72 64 6f 67 40 |GMT.To: |stardog@|
|00000150| 61 63 63 65 73 73 6f 6e | 65 2e 63 6f 6d 0a 58 2d |accesson|e.com.X-|
|00000160| 4e 6e 74 70 2d 50 6f 73 | 74 69 6e 67 2d 48 6f 73 |Nntp-Pos|ting-Hos|
|00000170| 74 3a 20 62 6d 72 31 2e | 74 72 2e 75 6e 69 73 79 |t: bmr1.|tr.unisy|
|00000180| 73 2e 63 6f 6d 0a 43 6f | 6e 74 65 6e 74 2d 54 72 |s.com.Co|ntent-Tr|
|00000190| 61 6e 73 66 65 72 2d 45 | 6e 63 6f 64 69 6e 67 3a |ansfer-E|ncoding:|
|000001a0| 20 37 62 69 74 0a 43 6f | 6e 74 65 6e 74 2d 54 79 | 7bit.Co|ntent-Ty|
|000001b0| 70 65 3a 20 74 65 78 74 | 2f 70 6c 61 69 6e 3b 20 |pe: text|/plain; |
|000001c0| 63 68 61 72 73 65 74 3d | 75 73 2d 61 73 63 69 69 |charset=|us-ascii|
|000001d0| 0a 52 65 66 65 72 65 6e | 63 65 73 3a 20 3c 33 31 |.Referen|ces: <31|
|000001e0| 32 31 37 32 31 34 2e 32 | 46 37 31 40 61 63 63 65 |217214.2|F71@acce|
|000001f0| 73 73 6f 6e 65 2e 63 6f | 6d 3e 0a 4d 69 6d 65 2d |ssone.co|m>.Mime-|
|00000200| 56 65 72 73 69 6f 6e 3a | 20 31 2e 30 0a 58 2d 4d |Version:| 1.0.X-M|
|00000210| 61 69 6c 65 72 3a 20 4d | 6f 7a 69 6c 6c 61 20 31 |ailer: M|ozilla 1|
|00000220| 2e 31 20 28 57 69 6e 64 | 6f 77 73 3b 20 55 3b 20 |.1 (Wind|ows; U; |
|00000230| 31 36 62 69 74 29 0a 4f | 72 67 61 6e 69 7a 61 74 |16bit).O|rganizat|
|00000240| 69 6f 6e 3a 20 55 6e 69 | 73 79 73 20 43 6f 72 70 |ion: Uni|sys Corp|
|00000250| 6f 72 61 74 69 6f 6e 0a | 0a 73 74 61 72 64 6f 67 |oration.|.stardog|
|00000260| 20 3c 73 74 61 72 64 6f | 67 40 61 63 63 65 73 73 | <stardo|g@access|
|00000270| 6f 6e 65 2e 63 6f 6d 3e | 20 77 72 6f 74 65 3a 0a |one.com>| wrote:.|
|00000280| 3e 68 69 2c 20 69 20 61 | 6d 20 72 65 61 6c 6c 79 |>hi, i a|m really|
|00000290| 20 6e 65 77 20 74 6f 20 | 63 6f 64 69 6e 67 2c 20 | new to |coding, |
|000002a0| 62 75 74 20 69 20 77 61 | 73 20 77 6f 6e 64 65 72 |but i wa|s wonder|
|000002b0| 69 6e 67 20 69 66 20 61 | 6e 79 6f 6e 65 20 6f 75 |ing if a|nyone ou|
|000002c0| 74 20 74 68 65 72 65 20 | 0a 3e 63 6f 75 6c 64 20 |t there |.>could |
|000002d0| 73 65 6e 64 20 6d 65 20 | 74 68 65 20 63 6f 64 65 |send me |the code|
|000002e0| 20 74 6f 20 6d 61 6b 65 | 20 61 20 77 69 6e 64 6f | to make| a windo|
|000002f0| 77 73 20 70 72 6f 67 72 | 61 6d 2c 20 6f 72 20 65 |ws progr|am, or e|
|00000300| 76 65 6e 20 77 68 61 74 | 20 74 68 65 20 63 6f 64 |ven what| the cod|
|00000310| 65 20 0a 3e 6c 6f 6f 6b | 73 20 6c 69 6b 65 20 74 |e .>look|s like t|
|00000320| 6f 20 6d 61 6b 65 20 61 | 20 77 69 6e 64 6f 77 2c |o make a| window,|
|00000330| 20 69 6d 20 6a 75 73 74 | 20 63 6f 6e 66 75 73 65 | im just| confuse|
|00000340| 64 20 6f 6e 20 74 68 69 | 73 20 77 68 6f 6c 65 20 |d on thi|s whole |
|00000350| 77 69 6e 64 6f 77 73 20 | 73 69 64 65 2c 20 0a 3e |windows |side, .>|
|00000360| 62 75 74 20 6c 69 6b 65 | 20 69 20 73 61 69 64 20 |but like| i said |
|00000370| 69 6d 20 72 65 61 6c 6c | 79 20 6e 65 77 20 61 74 |im reall|y new at|
|00000380| 20 69 74 2e 20 61 6e 79 | 20 68 65 6c 70 20 77 6f | it. any| help wo|
|00000390| 75 6c 64 20 62 65 20 67 | 72 65 61 74 6c 79 20 0a |uld be g|reatly .|
|000003a0| 3e 61 70 72 69 63 69 61 | 74 65 64 2e 20 20 0a 3e |>apricia|ted. .>|
|000003b0| 20 20 20 20 20 74 68 61 | 6e 6b 73 0a 3e 66 65 65 | tha|nks.>fee|
|000003c0| 6c 20 66 72 65 65 20 74 | 6f 20 65 6d 61 69 6c 20 |l free t|o email |
|000003d0| 6d 65 2c 20 73 74 61 72 | 64 6f 67 40 61 63 63 65 |me, star|dog@acce|
|000003e0| 73 73 6f 6e 65 2e 63 6f | 6d 0a 0a 44 65 70 65 6e |ssone.co|m..Depen|
|000003f0| 64 73 20 65 6e 74 69 72 | 65 6c 79 20 6f 6e 20 77 |ds entir|ely on w|
|00000400| 68 61 74 20 79 6f 75 20 | 6d 65 61 6e 20 62 79 20 |hat you |mean by |
|00000410| 22 77 69 6e 64 6f 77 73 | 22 2c 20 61 72 65 20 79 |"windows|", are y|
|00000420| 6f 75 20 74 61 6c 6b 69 | 6e 67 20 61 62 6f 75 74 |ou talki|ng about|
|00000430| 0a 4d 53 2d 57 69 6e 64 | 6f 77 73 2c 20 58 57 69 |.MS-Wind|ows, XWi|
|00000440| 6e 64 6f 77 73 2c 20 4f | 70 65 6e 20 4c 6f 6f 6b |ndows, O|pen Look|
|00000450| 2c 20 65 74 63 2e 3f 20 | 0a 0a 54 68 65 20 63 6f |, etc.? |..The co|
|00000460| 64 65 20 74 6f 20 63 72 | 65 61 74 65 20 77 69 6e |de to cr|eate win|
|00000470| 64 6f 77 73 20 76 61 72 | 69 65 73 20 6e 6f 74 20 |dows var|ies not |
|00000480| 6f 6e 6c 79 20 62 79 20 | 77 69 6e 64 6f 77 69 6e |only by |windowin|
|00000490| 67 20 73 79 73 74 65 6d | 2c 20 62 75 74 0a 66 72 |g system|, but.fr|
|000004a0| 6f 6d 20 63 6f 6d 70 69 | 6c 65 72 20 74 6f 20 63 |om compi|ler to c|
|000004b0| 6f 6d 70 69 6c 65 72 2e | 0a 0a 49 4e 20 47 45 4e |ompiler.|..IN GEN|
|000004c0| 45 52 41 4c 20 28 61 6e | 64 20 49 20 75 73 65 20 |ERAL (an|d I use |
|000004d0| 74 68 65 20 74 65 72 6d | 20 6c 6f 6f 73 65 6c 79 |the term| loosely|
|000004e0| 29 20 61 20 77 69 6e 64 | 6f 77 73 20 70 72 6f 67 |) a wind|ows prog|
|000004f0| 72 61 6d 20 77 69 6c 6c | 20 62 65 20 76 65 72 79 |ram will| be very|
|00000500| 0a 64 69 66 66 65 72 65 | 6e 74 20 66 72 6f 6d 20 |.differe|nt from |
|00000510| 61 20 63 6f 6e 73 6f 6c | 65 2d 62 61 73 65 64 20 |a consol|e-based |
|00000520| 70 72 6f 67 72 61 6d 20 | 28 65 2e 67 2e 20 74 65 |program |(e.g. te|
|00000530| 78 74 20 6f 6e 6c 79 29 | 20 62 65 63 61 75 73 65 |xt only)| because|
|00000540| 20 77 69 6e 64 6f 77 0a | 73 79 73 74 65 6d 73 20 | window.|systems |
|00000550| 75 73 65 20 61 20 74 65 | 63 68 6e 69 71 75 65 20 |use a te|chnique |
|00000560| 63 61 6c 6c 65 64 20 6d | 65 73 73 61 67 69 6e 67 |called m|essaging|
|00000570| 3b 20 49 6e 73 74 65 61 | 64 20 6f 66 20 77 72 69 |; Instea|d of wri|
|00000580| 74 69 6e 67 20 63 6f 64 | 65 20 74 6f 0a 68 61 6e |ting cod|e to.han|
|00000590| 64 6c 65 20 63 6f 6d 6d | 61 6e 64 73 20 74 79 70 |dle comm|ands typ|
|000005a0| 65 64 20 66 72 6f 6d 20 | 74 68 65 20 6b 65 79 62 |ed from |the keyb|
|000005b0| 6f 61 72 64 2c 20 79 6f | 75 20 77 72 69 74 65 20 |oard, yo|u write |
|000005c0| 65 69 74 68 65 72 20 5f | 6d 65 73 73 61 67 65 5f |either _|message_|
|000005d0| 68 61 6e 64 6c 65 72 73 | 5f 0a 6f 72 20 5f 63 61 |handlers|_.or _ca|
|000005e0| 6c 6c 62 61 63 6b 5f 66 | 75 6e 63 74 69 6f 6e 73 |llback_f|unctions|
|000005f0| 5f 20 74 6f 20 70 72 6f | 63 65 73 73 20 6d 65 73 |_ to pro|cess mes|
|00000600| 73 61 67 65 73 20 72 65 | 63 65 69 76 65 64 20 66 |sages re|ceived f|
|00000610| 72 6f 6d 20 74 68 65 20 | 4f 70 65 72 61 74 69 6e |rom the |Operatin|
|00000620| 67 0a 53 79 73 74 65 6d | 2e 20 0a 0a 41 20 74 79 |g.System|. ..A ty|
|00000630| 70 69 63 61 6c 20 6d 65 | 73 73 61 67 65 20 63 6f |pical me|ssage co|
|00000640| 6e 73 69 73 74 73 20 6f | 66 20 61 20 5f 6d 65 73 |nsists o|f a _mes|
|00000650| 73 61 67 65 5f 74 79 70 | 65 5f 20 69 6e 64 69 63 |sage_typ|e_ indic|
|00000660| 61 74 69 6e 67 20 77 68 | 61 74 20 6f 63 63 75 72 |ating wh|at occur|
|00000670| 72 65 64 0a 74 6f 20 73 | 74 61 72 74 20 74 68 65 |red.to s|tart the|
|00000680| 20 6d 65 73 73 61 67 65 | 2c 20 61 73 20 77 65 6c | message|, as wel|
|00000690| 6c 20 61 73 20 73 65 76 | 65 72 61 6c 20 5f 6d 65 |l as sev|eral _me|
|000006a0| 73 73 61 67 65 5f 70 61 | 72 61 6d 65 74 65 72 73 |ssage_pa|rameters|
|000006b0| 5f 20 77 68 69 63 68 20 | 63 6f 6e 74 61 69 6e 0a |_ which |contain.|
|000006c0| 61 20 76 61 72 69 65 74 | 79 20 6f 66 20 64 61 74 |a variet|y of dat|
|000006d0| 61 20 64 65 70 65 6e 64 | 69 6e 67 20 6f 6e 20 74 |a depend|ing on t|
|000006e0| 68 65 20 6d 65 73 73 61 | 67 65 20 74 68 61 74 20 |he messa|ge that |
|000006f0| 77 61 73 20 73 65 6e 74 | 2e 20 54 79 70 69 63 61 |was sent|. Typica|
|00000700| 6c 20 6d 65 73 73 61 67 | 65 73 0a 68 61 76 65 20 |l messag|es.have |
|00000710| 6e 61 6d 65 73 20 6c 69 | 6b 65 20 57 4d 5f 4c 42 |names li|ke WM_LB|
|00000720| 55 54 54 4f 4e 44 4f 57 | 4e 20 28 79 6f 75 20 70 |UTTONDOW|N (you p|
|00000730| 72 65 73 73 65 64 20 74 | 68 65 20 6c 65 66 74 20 |ressed t|he left |
|00000740| 6d 6f 75 73 65 20 62 75 | 74 74 6f 6e 29 20 6f 72 |mouse bu|tton) or|
|00000750| 0a 57 4d 5f 43 52 45 41 | 54 45 20 28 74 68 65 20 |.WM_CREA|TE (the |
|00000760| 4f 53 20 73 61 79 73 20 | 69 74 73 20 74 69 6d 65 |OS says |its time|
|00000770| 20 74 6f 20 6d 61 6b 65 | 20 61 20 6e 65 77 20 77 | to make| a new w|
|00000780| 69 6e 64 6f 77 29 2c 20 | 61 6e 64 20 79 6f 75 72 |indow), |and your|
|00000790| 20 70 72 6f 67 72 61 6d | 0a 6d 75 73 74 20 62 65 | program|.must be|
|000007a0| 20 61 62 6c 65 20 74 6f | 20 70 65 72 66 6f 72 6d | able to| perform|
|000007b0| 20 74 68 65 20 63 6f 72 | 72 65 63 74 20 6f 70 65 | the cor|rect ope|
|000007c0| 72 61 74 69 6f 6e 73 20 | 66 6f 6c 6c 6f 77 69 6e |rations |followin|
|000007d0| 67 20 72 65 63 65 70 74 | 69 6f 6e 20 6f 66 0a 74 |g recept|ion of.t|
|000007e0| 68 65 20 6d 65 73 73 61 | 67 65 2e 0a 0a 4d 6f 73 |he messa|ge...Mos|
|000007f0| 74 20 6f 66 20 74 68 65 | 20 6d 61 6a 6f 72 20 63 |t of the| major c|
|00000800| 6f 6d 70 69 6c 65 72 73 | 20 61 76 61 69 6c 61 62 |ompilers| availab|
|00000810| 6c 65 20 66 6f 72 20 4d | 53 2d 57 69 6e 64 6f 77 |le for M|S-Window|
|00000820| 73 20 68 61 76 65 20 73 | 79 73 74 65 6d 73 20 64 |s have s|ystems d|
|00000830| 65 73 69 67 6e 65 64 0a | 74 6f 20 61 69 64 20 74 |esigned.|to aid t|
|00000840| 68 65 20 70 72 6f 67 72 | 61 6d 6d 65 72 20 69 6e |he progr|ammer in|
|00000850| 20 63 72 65 61 74 69 6e | 67 20 57 69 6e 64 6f 77 | creatin|g Window|
|00000860| 73 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 2e 20 |s applic|ations. |
|00000870| 54 68 65 73 65 20 5f 61 | 70 70 6c 69 63 61 74 69 |These _a|pplicati|
|00000880| 6f 6e 5f 0a 5f 46 72 61 | 6d 65 77 6f 72 6b 5f 20 |on_._Fra|mework_ |
|00000890| 73 79 73 74 65 6d 73 20 | 63 6f 6e 74 61 69 6e 20 |systems |contain |
|000008a0| 63 6f 64 65 20 74 68 61 | 74 20 61 75 74 6f 6d 61 |code tha|t automa|
|000008b0| 74 65 73 20 6d 75 63 68 | 20 6f 66 20 74 68 65 20 |tes much| of the |
|000008c0| 6d 65 73 73 61 67 65 20 | 68 61 6e 64 6c 69 6e 67 |message |handling|
|000008d0| 2c 0a 61 73 20 77 65 6c | 6c 20 61 73 20 63 6f 64 |,.as wel|l as cod|
|000008e0| 65 20 74 6f 20 6d 61 6b | 65 20 69 74 20 65 61 73 |e to mak|e it eas|
|000008f0| 69 65 72 20 66 6f 72 20 | 74 68 65 20 70 72 6f 67 |ier for |the prog|
|00000900| 72 61 6d 6d 65 72 20 74 | 6f 20 75 73 65 20 61 64 |rammer t|o use ad|
|00000910| 76 61 6e 63 65 64 20 66 | 65 61 74 75 72 65 73 0a |vanced f|eatures.|
|00000920| 6c 69 6b 65 20 6d 75 6c | 74 69 70 6c 65 20 63 68 |like mul|tiple ch|
|00000930| 69 6c 64 20 77 69 6e 64 | 6f 77 73 2c 20 4f 4c 45 |ild wind|ows, OLE|
|00000940| 2c 20 61 6e 64 20 63 6f | 6d 6d 6f 6e 20 64 69 61 |, and co|mmon dia|
|00000950| 6c 6f 67 20 62 6f 78 65 | 73 2e 0a 0a 42 75 74 2c |log boxe|s...But,|
|00000960| 20 61 73 20 49 20 73 61 | 69 64 20 65 61 72 6c 69 | as I sa|id earli|
|00000970| 65 72 2c 20 69 74 20 64 | 65 70 65 6e 64 73 20 65 |er, it d|epends e|
|00000980| 6e 74 69 72 65 6c 79 20 | 6f 6e 20 77 68 61 74 20 |ntirely |on what |
|00000990| 5f 6b 69 6e 64 5f 20 6f | 66 20 77 69 6e 64 6f 77 |_kind_ o|f window|
|000009a0| 73 20 79 6f 75 27 72 65 | 0a 72 65 66 65 72 72 69 |s you're|.referri|
|000009b0| 6e 67 20 74 6f 2e 20 4d | 6f 73 74 20 6f 66 20 6d |ng to. M|ost of m|
|000009c0| 79 20 65 78 70 65 72 69 | 65 6e 63 65 20 69 73 20 |y experi|ence is |
|000009d0| 77 69 74 68 20 4d 53 2d | 57 69 6e 64 6f 77 73 2c |with MS-|Windows,|
|000009e0| 20 77 68 69 6c 65 20 79 | 6f 75 20 6d 69 67 68 74 | while y|ou might|
|000009f0| 20 62 65 0a 74 61 6c 6b | 69 6e 67 20 61 62 6f 75 | be.talk|ing abou|
|00000a00| 74 20 4f 70 65 6e 20 4c | 6f 6f 6b 2c 20 4e 65 58 |t Open L|ook, NeX|
|00000a10| 54 53 74 65 70 2c 20 6f | 72 20 73 6f 6d 65 20 6f |TStep, o|r some o|
|00000a20| 74 68 65 72 20 73 79 73 | 74 65 6d 2e 0a 0a 43 6f |ther sys|tem...Co|
|00000a30| 75 6c 64 20 79 6f 75 20 | 62 65 20 6d 6f 72 65 20 |uld you |be more |
|00000a40| 73 70 65 63 69 66 69 63 | 20 61 73 20 74 6f 20 6f |specific| as to o|
|00000a50| 70 65 72 61 74 69 6e 67 | 20 73 79 73 74 65 6d 20 |perating| system |
|00000a60| 61 6e 64 20 77 69 6e 64 | 6f 77 20 73 79 73 74 65 |and wind|ow syste|
|00000a70| 6d 3f 20 49 20 63 6f 75 | 6c 64 0a 62 65 20 6f 66 |m? I cou|ld.be of|
|00000a80| 20 6d 6f 72 65 20 68 65 | 6c 70 20 74 68 65 6e 2e | more he|lp then.|
|00000a90| 0a 0a 46 72 65 65 6c 79 | 20 79 6f 75 72 73 2c 0a |..Freely| yours,.|
|00000aa0| 42 65 6e 6a 61 6d 69 6e | 20 4d 2e 20 52 6f 6d 65 |Benjamin| M. Rome|
|00000ab0| 72 0a 53 6f 66 74 77 61 | 72 65 20 45 6e 67 69 6e |r.Softwa|re Engin|
|00000ac0| 65 65 72 0a 55 6e 69 73 | 79 73 20 43 6f 72 70 6f |eer.Unis|ys Corpo|
|00000ad0| 72 61 74 69 6f 6e 0a 0a | 23 69 6e 63 6c 75 64 65 |ration..|#include|
|00000ae0| 20 3c 73 74 64 64 69 73 | 63 6c 61 69 6d 2e 68 3e | <stddis|claim.h>|
|00000af0| 0a 0a 0a | |... | |
+--------+-------------------------+-------------------------+--------+--------+